#include"processbar.h"
void processbar()
{
    int cnt=0;
    char bar[NUM];
    memset(bar,'\0',sizeof(bar));
    while(cnt<=100)
    {
        printf("[%-100s][%d%%]\r",bar,cnt);
        fflush(stdout);
        bar[cnt++]=S;
        usleep(100000);
    }
    printf("\n");
}
